<template>
	<div class="label">
		<van-tabbar route v-model="active" v-if="isMainPage" :active-color="mColor">
			<van-tabbar-item icon="home-o" to='/'>我的</van-tabbar-item>
			<van-tabbar-item icon="setting-o" to='/publish'>发布</van-tabbar-item>
			<van-tabbar-item icon="friends-o" to='/fertile'>我的</van-tabbar-item>
		</van-tabbar>
	</div>
</template>

<script>
	
	export default {
		components: {
			
		},
		data() {
			return {
				active: 0,
			}
		},
		computed:{
			isMainPage(){
				return this.$route.meta.root
			}
		}
	}
</script>

<style>
	.label{
		width: 375px;
	}
</style>
